<?php 
// 查询所有的分数
	function selectScore() {
		$mysql = new mysqli(SAE_MYSQL_HOST_M.":".SAE_MYSQL_PORT, SAE_MYSQL_USER, SAE_MYSQL_PASS, SAE_MYSQL_DB);
		$mysql -> query("set names utf8");

//通过分数降序排序
		$sql = "select * from inno order by score desc";
		$result = $mysql -> query($sql);
		while($result2 = $result -> fetch_row()) {
			$nickname = $result2["nickname"];
			$score = $result2["score"];
			echo $nickname."   ".$score;
			echo "<br>";
		}
		
	}
	selectScore();



 ?>